import $ from '@/axios/supplies';

// 获取物资类型列表
export const suppliesTypePage = data =>
  $.get('/suppliesType/page', { params: data });

// 获取物资类型详情
export const getSuppliesType = id => $.get(`/suppliesType/get/${id}`);

// 获取物资列表
export const suppliesPage = data => $.get('/supplies/page', { params: data });

// 获取物资详情
export const getSupplies = id => $.get(`/supplies/get/${id}`);

// 物资修改
export const modifySupplies = data => $.post('/supplies/modify', data);

// 物资实时信息
export const suppliesRealInfoPage = data =>
  $.get('/suppliesRealinfo/page', { params: data });

// 物资实时信息
export const suppliesRealinfoWarning = data =>
  $.get('/suppliesRealinfoWarning/page', { params: data });

// 人员图像上传
export const personImgUpload = () => $.post('/person/imgUpload');

// 人员
export const personPage = data => $.get('/person/page', { params: data });
